#include "Vector.h"
#include <iostream>

using namespace std;

int main()
{
	Vector<int> v( 1 );

	cout << v.max_size() << endl;
	cout << v.size() << endl;
	cout << v.capacity() << endl;
	cout << v.empty() << endl;

	cout << endl;

	v.push_back( 10 );
	v.push_back( 20 );
	v.push_back( 30 );

	cout << v[0] << endl;
	cout << v[1] << endl;
	cout << v.at( 2 ) << endl;
	cout << v.front() << endl;
	cout << v.back() << endl;

	cout << endl;

	v.insert( 0, 1 );
	cout << v[0] << endl;

	v.erase( 0 );
	cout << v[0] << endl;

	//cout << v.size() << endl;

	//v.pop_back();
	//cout << v.size() << endl;

	cout << endl;

	for( Vector<int>::Iterator i = v.begin(); i != v.end(); ++i )
	{
		cout << *i << endl;
	}

	system( "pause" );

	return 0;
}

